package com.autologistics.service;

import java.util.List;

import com.autologistics.dao.GoodsorderDao;
import com.autologistics.model.GoodsorderId;

public class GoodsorderServiceImpl implements GoodsorderService{
	GoodsorderDao goodsorderDao;
	
	public GoodsorderDao getGoodsorderDao() {
		return goodsorderDao;
	}

	public void setGoodsorderDao(GoodsorderDao goodsorderDao) {
		this.goodsorderDao = goodsorderDao;
	}

	public void save(GoodsorderId goi){
		goodsorderDao.save(goi);
	}
	public GoodsorderId getGoodsorderByOrderId(int id){
		return goodsorderDao.getGoodsorderByOrderId(id);
	}
	public  List<GoodsorderId> getGoodsorderByGoodsId(int id){
		return goodsorderDao.getGoodsorderByGoodsId(id);
	}
}
